#!/user/bin/env python3
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# @File : message_assert.py
# @Time : 2022-08-05 17:24
# @Author : mojin
# @Email : 397135766@qq.com
# @Software : PyCharm
#-------------------------------------------------------------------------------
from business.message.message_page import Message_page
from base.base_page import BasePage



class MessageAssert():
    def __init__(self,drivers):

        self.d0 = BasePage(drivers[0])

    def send_message(self,expect_text):
        result=[
                self.d0.assert_text(*Message_page.LastMessage, expect_text, doc='断言和最后一条消息是否一致'),
        ]

        return not False in result



